//
//  Framework for a raytracer
//  File: plan.h
//
//  Created for the Computer Science course "Introduction Computer Graphics"
//  taught at the University of Groningen by Tobias Isenberg.
//
//  Authors:
//	  Zhe Sun
//
//  This framework is inspired by and uses code of the raytracer framework of 
//  Bert Freudenberg that can be found at
//  http://isgwww.cs.uni-magdeburg.de/graphik/lehre/cg2/projekt/rtprojekt.html 
//

#ifndef __PLAN__
#define __PLAN__

#include "object.h"

class Plan : public Object
{
public:
    Plan(Point planPoint, Point normalPos) : point(planPoint), normal((normalPos - planPoint).normalized()) {}

    virtual Hit intersect(const Ray &ray);

    const Point point;
    const Vector normal;
};

#endif /* end of include guard: SPHERE_H_115209AE */
